import request from '@/request'
import type { UserInfo } from '@/types/user'

/** 获取当前登录用户 */
export const get_user_info = () =>
  request.get<UserInfo>('/api/user/getLoginUser')

/** 退出登录 */
export const logout_api = () =>
  request.post('/api/user/logout')
